/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏李涛
 * Date: 2024-11-08
 * Time: 20:38
 */

class Point{

   /* public Point(double x, double y){

    }
    public Point(double r, double a){

    }*/
}

class PointFactory {
    public static Point makePointByXY(double x, double y) {
        Point p = new Point();
        // 通过 x 和 y 给 p 进行属性设置
        return p;
    }

    public static Point makePointByRA(double r, double a) {
        Point p = new Point();
        // 通过 r 和 a 给 p 进行属性设置
        return p;
    }
}

public class ThreadFactory {
    public static void main(String[] args) {

    }
}
